home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / support-files / my-huge.cnf < prev    next >
Encoding:
Text File  |  2003-01-22  |  2.5 KB  |  87 lines  |  [TEXT/ttxt]

  1. # Example mysql config file for very large systems.
  2. #
  3. # This is for large system with memory of 1G-2G where the system runs mainly
  4. # MySQL.
  5. #
  6. # You can copy this file to
  7. # /etc/my.cnf to set global options,
  8. # mysql-data-dir/my.cnf to set server-specific options (in this
  9. # installation this directory is /usr/local/mysql/var) or
  10. # ~/.my.cnf to set user-specific options.
  11. #
  12. # One can in this file use all long options that the program supports.
  13. # If you want to know which options a program support, run the program
  14. # with --help option.
  15.  
  16. # The following options will be passed to all MySQL clients
  17. [client]
  18. #password    = your_password
  19. port        = 3306
  20. socket        = /tmp/mysql.sock
  21.  
  22. # Here follows entries for some specific programs
  23.  
  24. # The MySQL server
  25. [mysqld]
  26. port        = 3306
  27. socket        = /tmp/mysql.sock
  28. skip-locking
  29. set-variable    = key_buffer=384M
  30. set-variable    = max_allowed_packet=1M
  31. set-variable    = table_cache=512
  32. set-variable    = sort_buffer=2M
  33. set-variable    = record_buffer=2M
  34. set-variable    = thread_cache=8
  35. # Try number of CPU's*2 for thread_concurrency
  36. set-variable    = thread_concurrency=8
  37. set-variable    = myisam_sort_buffer_size=64M
  38. log-bin
  39. server-id    = 1
  40.  
  41. # Point the following paths to different dedicated disks
  42. #tmpdir        = /tmp/        
  43. #log-update     = /path-to-dedicated-directory/hostname
  44.  
  45. # Uncomment the following if you are using BDB tables
  46. #set-variable    = bdb_cache_size=384M
  47. #set-variable    = bdb_max_lock=100000
  48.  
  49. # Uncomment the following if you are using InnoDB tables
  50. #innodb_data_home_dir = /usr/local/mysql/var/
  51. #innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
  52. #innodb_log_group_home_dir = /usr/local/mysql/var/
  53. #innodb_log_arch_dir = /usr/local/mysql/var/
  54. # You can set .._buffer_pool_size up to 50 - 80 %
  55. # of RAM but beware of setting memory usage too high
  56. #set-variable = innodb_buffer_pool_size=384M
  57. #set-variable = innodb_additional_mem_pool_size=20M
  58. # Set .._log_file_size to 25 % of buffer pool size
  59. #set-variable = innodb_log_file_size=100M
  60. #set-variable = innodb_log_buffer_size=8M
  61. #innodb_flush_log_at_trx_commit=1
  62. #set-variable = innodb_lock_wait_timeout=50
  63.  
  64. [mysqldump]
  65. quick
  66. set-variable    = max_allowed_packet=16M
  67.  
  68. [mysql]
  69. no-auto-rehash
  70. # Remove the next comment character if you are not familiar with SQL
  71. #safe-updates
  72.  
  73. [isamchk]
  74. set-variable    = key_buffer=256M
  75. set-variable    = sort_buffer=256M
  76. set-variable    = read_buffer=2M
  77. set-variable    = write_buffer=2M
  78.  
  79. [myisamchk]
  80. set-variable    = key_buffer=256M
  81. set-variable    = sort_buffer=256M
  82. set-variable    = read_buffer=2M
  83. set-variable    = write_buffer=2M
  84.  
  85. [mysqlhotcopy]
  86. interactive-timeout
  87.